<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="选择调账类型" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function doCancel(){
		parent.ClosePop();
	}
	function doSelect(){
		var type="";
		if(document.getElementById("adjust_type0")!=null && document.getElementById("adjust_type0").checked){
			type="COLLECT_ADD";
		}else if(document.getElementById("adjust_type1")!=null && document.getElementById("adjust_type1").checked){
			type="COLLECT_ABATE";
		}else if(document.getElementById("adjust_type2")!=null && document.getElementById("adjust_type2").checked){
			type="PAY_ADD";
		}else if(document.getElementById("adjust_type3")!=null && document.getElementById("adjust_type3").checked){
			type="PAY_ABATE";
		}else if(document.getElementById("adjust_type4")!=null && document.getElementById("adjust_type4").checked){
			type="PUR_BACK_ADD";
		}else if(document.getElementById("adjust_type5")!=null && document.getElementById("adjust_type5").checked){
			type="PUR_BACK_ABATE";
		}else if(document.getElementById("adjust_type6")!=null && document.getElementById("adjust_type6").checked){
			type="COO_ADD";
		}else if(document.getElementById("adjust_type7")!=null && document.getElementById("adjust_type7").checked){
			type="COO_ABATE";
		}else{
			return;
		}
		parent.popRetVal=type;
		parent.ClosePop();
	}
	function doInit(){
		document.getElementById("okButton").focus();
	}
	function checkInput(){
		if(window.event.keyCode==13){
			doSelect();
		}
	}
</script>
<body oncontextmenu="return false" onload="doInit();" onKeyUp="checkInput();" class="sheet modal-dialog" style=" padding-top:15px;text-align:center;">
<div class="sheet-main" id="bodyDiv" style="width:210px;">
	<form name="frm" method="post">
	  <div class="sheet-list" style="width:100%">
	    <div class="modal-main search-business">
	    	<div style="width:100%;">
				<c:set var="pageTopTitle" value="请选择调账类型" />
				<c:set var="pageTopMark" value="" />
				<%@ include file="../inc/PageTop.jsp"%> 
				<table border="0" cellspacing="1" cellpadding="1" align="center" class="table-0" style="width:66%">
						<c:if test="${billType==null || billType=='' || billType=='BUSINESS_BILL'}">
						<tr>
							<td align="left" onDblClick="document.getElementById('adjust_type0').checked='true';doSelect();">
								<input type="radio" name="adjust_type" id="adjust_type0">应收款增加
							</td>
						</tr>
						<tr>
							<td align="left" onDblClick="document.getElementById('adjust_type1').checked='true';doSelect();">
								<input type="radio" name="adjust_type" id="adjust_type1" checked="true">应收款减少<br>
							</td>
						</tr>
						</c:if>
						<c:if test="${billType==null || billType=='' || billType=='PURCHASE_BILL' || billType=='PURCHASE_BUY' || billType=='PAY'}">
						<tr>
							<td align="left" onDblClick="document.getElementById('adjust_type2').checked='true';doSelect();">
								<input type="radio" name="adjust_type" id="adjust_type2" <c:if test="${billType=='PURCHASE_BILL' || billType=='PURCHASE_BUY' || billType=='PAY'}">checked="true"</c:if>>采购付款金额增加
							</td>
						</tr>
						<tr>
							<td align="left" onDblClick="document.getElementById('adjust_type3').checked='true';doSelect();">
								<input type="radio" name="adjust_type" id="adjust_type3">采购付款金额减少<br>
							</td>
						</tr>
						</c:if>
						<c:if test="${billType==null || billType=='' || billType=='PURCHASE_BILL' || billType=='PURCHASE_BACK' || billType=='PAY'}">
						<tr>
							<td align="left" onDblClick="document.getElementById('adjust_type4').checked='true';doSelect();">
								<input type="radio" name="adjust_type" id="adjust_type4">采购退货金额增加
							</td>
						</tr>
						<tr>
							<td align="left" onDblClick="document.getElementById('adjust_type5').checked='true';doSelect();">
								<input type="radio" name="adjust_type" id="adjust_type5">采购退货金额减少<br>
							</td>
						</tr>
						</c:if>
						<c:if test="${billType==null || billType=='' || billType=='COOPER_BILL' || billType=='PAY'}">
						<tr>
							<td align="left" onDblClick="document.getElementById('adjust_type6').checked='true';doSelect();">
								<input type="radio" name="adjust_type" id="adjust_type6">外协金额增加
							</td>
						</tr>
						<tr>
							<td align="left" onDblClick="document.getElementById('adjust_type7').checked='true';doSelect();">
								<input type="radio" name="adjust_type" id="adjust_type7">外协金额减少<br>
							</td>
						</tr>
						</c:if>
				</table>
			</div>
	  	</div>
	  </div>
		<div class="modal-buttom">
			<input type="button" class="buttom-a" value="确定" onClick="doSelect();" id="okButton">
			<input type="button" class="buttom-a" value="取消" onClick="doCancel();">					
		</div>
	</form>
</div>		
</body>
</html>